/*******************************************************************************
 * Copyright (c) 2007 University of Oslo.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     University of Oslo - initial API and implementation
 *******************************************************************************/

package com.cea.papyrus.diagram.sequence.sedi.model.command;

import org.eclipse.uml2.uml.Interaction;

import com.cea.papyrus.diagraminterchange2.di2.Diagram;

/**
 * Command to remove Interactions from sequence diagrams.
 *
 * <p>The following attributes must be set for the command to complete
 * successfully:</p>
 * <ul>
 *   <li>Diagram
 *   <li>Interaction
 * </ul>
 * 
 * @author frankd@ifi.uio.no
 * 
 * @see com.cea.papyrus.diagram.sequence.sedi.model.command.AddInteractionFromDiagramCommand
 */
public class RemoveInteractionFromDiagramCommand 
	extends AddInteractionToDiagramCommand {
	
	public RemoveInteractionFromDiagramCommand() {
	}
	public RemoveInteractionFromDiagramCommand(final Diagram d, final Interaction i) {
		super(d, i);
	}
	
	@Override
	public void execute() {
		super.undo();
	}

	@Override
	public void undo() {
		super.execute();
	}
}
